import Router from '@koa/router'
const router = new Router()

import { userAuth } from '../controllers/auth.js'
import { checkToken } from '../controllers/data.js'

router.post('/login', userAuth)
router.post('/getUserInfo', checkToken)

export default router